Note: This is a very primitive port of ╥ppmquant╙ from the ╥pbm╙ package that was developed by Steve Posakner. These
programs are still in the testing phase. This program is intended to
be used as a bridge until the final versions become available.
This program selects a pallet of 256 colors and outputs a ppm file that uses the revised pallet. This is necessary because the ╥gif╙ format can only support a pallet of 256 colors (?)
Usage:
Place the application in the same folder where the .ppm file resides.
Launch the application. When the console dialog appears, at the
point where the cursor is positioned, enter:
256 <file>.ppm <file>.ppm256
For example, if I have a file named ╥test.ppm╙, I would be presented
with a line like:
ppmquant
to which I would add to make the complete line:
ppmquant 256 test.ppm test.ppm256
Press return or click ╥OK╙.
I╒ve included the ╥README╙ file from the original distribution.
The only differences between this program and the distribution the
display of the opening copyright messages, the ╥Print the dots╙
implementation, and changes necessary to make things run properly on the Mac. This version was compiled from a version that was posted on ╥alt.graphics.pixutils╙
There are two versions of this program being posted. ╥djpeg╙ was
compiled with vanilla 60000 code and no 68881 math co-processor
support. It should run on any Mac. The time required to
decompress a 32K jpg file into a 497K ppm file was about four
minutes (not counting the time required for the final write to flush
the output file. The timing was done on a Mac IIci.
The ╥dpeg.020.68881╙ version has been compiled with both 68020
and 68881 code generation enabled. It will only work on Macs that
have both of these chips. The timing for the above decompression
was about 40 seconds.
You will also need to obtain the ╥ppmquant╙ and ╥ppmtogif╙
programs to make proper use of this program. They should be